<?php
/**
 * Контроллер новостей фронт-енда
 * 
 * @category Phorm
 * @package Controller_Module_Default
 * @name /Phorm/Controller/Module/Default/News.php
 * @copyright phorm.ru
 * @since 23.12.2010
 * @author vladimir@kachalov.net
 */

class Phorm_Controller_Module_Default_News extends Phorm_Controller_Controller {
	
	
	/**
	 * Просмотр текста новости
	 *
	 * @return void
	 */
	
	public function viewAction() {
		
		if(isset($this->_params["resourceinfo"])) {
			
			$this->view->assign("Title",$this->_params["resourceinfo"]["seotitle"]);
			$this->view->assign("Header",$this->_params["resourceinfo"]["resourcename"]);
			$this->view->assign("Description",$this->_params["resourceinfo"]["seodescription"]);
			$this->view->assign("Keywords",$this->_params["resourceinfo"]["seokeywords"]);
			
			$this->view->assign("NewsInfo",$this->_params["resourceinfo"]);
			
		} else {
		
			return $this->_forward("notfound","error","default",array("action"=>"notfound","controller"=>"error","module"=>"default"));	
			
		}
		
	}

		
}

 